-- GENERATED SPELL FOR [Thanthaldis Snowgleam] --


function spell0_13217(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(19642,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13217', 615, 1)
end

function spell1_13217(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(19644,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13217', 613, 1)
end

function Sorts_13217(pUnit, Event)
local choix_sorts_13217 = math.random(0, 1)
if choix_sorts_13217 == 0 then
pUnit:RegisterEvent('spell0_13217', 1, 1)
end
if choix_sorts_13217 == 1 then
pUnit:RegisterEvent('spell1_13217', 1, 1)
end
end

function mob13217_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13217', math.random(1500, 3000), 1)
end

function mob13217_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13217_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13217_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13217, 1, 'mob13217_Action')
RegisterUnitEvent(13217, 2, 'mob13217_Leave')
RegisterUnitEvent(13217, 3, 'mob13217_Kill')
RegisterUnitEvent(13217, 4, 'mob13217_Die')
